export const widgetPiePercentage = {
    code: 'widget-pie-percentage',
    type: 'piechart',
    label: '百分比图',
    icon: 'pie-chart',
    preview: require('./preview/widget-pie-percentage.png'),
    options: {
      // 配置
      setup: [
        {
          type: 'a-input-text',
          label: '图层名称',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '百分比图',
        },
        {
          type: 'vue-color',
          label: '背景颜色',
          name: 'background',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-divider',
          label: '数值设置'
        },
        {
          type: 'vue-color',
          label: '数值颜色',
          name: 'textNumColor',
          required: false,
          placeholder: '',
          value: '#fff'
        },
        {
          type: 'a-input-number',
          label: '数值字体',
          name: 'textNumFontSize',
          required: false,
          placeholder: '',
          value: 40
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'textNumFontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'vue-color',
          label: '%号颜色',
          name: 'textPerColor',
          required: false,
          placeholder: '',
          value: '#fff'
        },
        {
          type: 'a-input-number',
          label: '%号字体',
          name: 'textPerFontSize',
          required: false,
          placeholder: '',
          value: 20
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'textPerFontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-divider',
          label: '圆环设置'
        },
        {
          type: 'a-input-number',
          label: '刻度数量',
          name: 'lineNumber',
          required: false,
          placeholder: '',
          value: 8
        },
        {
          type: 'a-input-number',
          label: '刻度长度',
          name: 'lineLength',
          required: false,
          placeholder: '',
          value: 15
        },
        {
          type: 'a-input-number',
          label: '刻度宽度',
          name: 'lineWidth',
          required: false,
          placeholder: '',
          value: 5
        },
        {
          type: 'vue-color',
          label: '刻度颜色',
          name: 'lineColor',
          required: false,
          placeholder: '',
          value: '#061740'
        },
        {
          type: 'a-divider',
          label: '渐变色'
        },
        {
          type: 'vue-color',
          label: '0%处颜色',
          name: 'color0Start',
          required: false,
          placeholder: '',
          value: '#4FADFD'
        },
        {
          type: 'vue-color',
          label: '100%颜色',
          name: 'color100End',
          required: false,
          placeholder: '',
          value: '#28E8FA'
        },
        {
          type: 'vue-color',
          label: '余处颜色',
          name: 'colorsurplus',
          required: false,
          placeholder: '',
          value: '#173164'
        },
      ],
      // 数据
      data: [
        {
          type: 'a-radio-group',
          label: '数据类型',
          name: 'dataType',
          require: false,
          placeholder: '',
          selectValue: true,
          selectOptions: [
            {
              code: 'staticData',
              name: '静态数据',
            },
            {
              code: 'dynamicData',
              name: '动态数据',
            },
          ],
          value: 'staticData',
        },
        {
          type: 'a-input-number',
          label: '刷新时间(毫秒)',
          name: 'refreshTime',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          value: 5000
        },
        {
          type: 'a-button',
          label: '静态数据',
          name: 'staticData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'staticData',
          value: 60,
        },
        {
          type: 'a-dict-select-tag',
          label: '动态数据',
          name: 'dynamicData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          dictKey: 'gaea_report_data_set,dsname,id',
          value: '',
        },
      ],
      // 坐标
      position: [
        {
          type: 'a-input-number',
          label: '横坐标',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '纵坐标',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '深度',
          name: 'zIndex',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '容器宽度',
          value: 600,
        },
        {
          type: 'a-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '容器高度',
          value: 300
        }
      ],
    }
  }
